int add_player(char *name,DWORD dpid,void *data)
Parameter | Type | Description |
---|---|---|
name | char * | player name |
dpid | DWORD | directplay player id |
data | void * | pointer to specific player data |
Returns the player index into the players array for the added player, and -1 if player could not be added.
This function adds a new player to the current game.